<%@ page contentType="text/html; charset=utf-8" %>


<link href="./js/Date/calendar-win2k-cold-1.css" rel="stylesheet"
	media="all" title="win2k-cold-1" type="text/css" />
<script src="./js/Date/calendar-setup.js" type="text/javascript"></script>
<script src="./js/Date/calendar.js" type="text/javascript"></script>
<script src="./js/Date/calendar-cn.js" type="text/javascript"></script>

<tr>
  <td>
    <table width="100%" border="0" cellpadding="0" cellspacing="5">
      <tr>
        <td>
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="dashTopLeft"><img src="images/spacer.gif" width="7" height="7"></td>
              <td class="dashTop" width=100%><img src="images/spacer.gif" width="7" height="7"></td>
              <td class="dashTopRight"><img src="images/spacer.gif" width="7" height="7"></td>
            </tr>
            <tr>
              <td class="dashLeft"><img src="images/spacer.gif" width="7" height="7"></td>
              <td align="center">
                <table width="100%" border="0" cellpadding="0" cellspacing="3">
						<form id="searchForm"
							action="<c:url value='searchLogTemplateByPage.html' />"
							method="get">
						<tr>
							<td width="114" height="20" class="globalTextBlueBold">日志查询</td>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
						</tr>
						<tr>						
							<td width="114" height="20" class="globalText">通信日期</td>								
							<td width="210"><input id="dateFrom" name="communicationDate" type="text" style="width:100px;"
							maxlength="30" readonly="true"
							value="${searchDto.dateFromStr}"
							onkeydown="return deleteDate(this.id,event)" /> <a href="#"
							onClick="showCalendar('dateFrom','imageDate1', '%Y-%m-%d')">
							<img id="imageDate1" name="imageDate1"
							src="./js/Date/flight-date.gif" width="25" height="21" border="0"
							align="absbottom"></a>
							<div id="errorMessage" />
							</td>
								
							<td width="114" height="20" class="globalText">通信编号</td>
							<td height="20" class="globalText"><input type="text"
								class="txtbox" size="20" id="logTemplateIdTxt"
								name="logTemplateIdTxt" value="" /></td>
							<td width="114" height="20" class="globalText">客户名称</td>
							<td height="20" class="globalText"><input type="text"
								class="txtbox" size="20" id="clientName"
								name="clientName" value="" /></td>
							<td width="114" height="20" class="globalText">发车单号</td>
							<td height="20" class="globalText"><input type="text"
								class="txtbox" size="20" id="truckId"
								name="truckId" value="" /></td>
							<td width="114" height="20" class="globalText">运单号</td>
							<td height="20" class="globalText"><input type="text"
								class="txtbox" size="20" id="carryId"
								name="carryId" value="" /></td>
						</tr>
						<tr>
							<td width="114" height="20" class="globalText">通信方式</td>
							<td height="20" class="globalText">
							<select name="communicationMode" >
								  <option value="" > --请选择-- </option>
                            	  <option value="sms" >短信</option>
                            	  <option value="voice" >语音</option>
                            </select>
							</td>
							<td width="114" height="20" class="globalText">通信状态</td>
								
							<td height="20" class="globalText">
							<select name="communicationFlag">
								  <option value="" > --请选择-- </option>
                            	  <option value="S00" >未发送</option>
                            	  <option value="S0B" >正在发送</option>
                            	  <option value="S0S" >发送完成</option>
                            </select>
							</td>
							<td width="114" height="20" class="globalText">分公司</td>
							<td height="20" class="globalText"><input type="text"
								class="txtbox" size="20" id="bdepartment"
								name="bdepartment" value="" /></td>
							<td width="114" height="20" class="globalText">操作员</td>
							<td height="20" class="globalText"><input type="text"
								class="txtbox" size="20" id="modifyUser"
								name="modifyUser" value="" /></td>
						</tr>

						<tr>
							<td align="left"><input type="button" id="searchBtn"
								class="btnStyle" value="  查询  "></td>
						</tr>
						</form>
					</table>
              </td>
              <td class="dashRight"><img src="images/spacer.gif" width="7" height="7"></td>
            </tr>
            <tr>
              <td class="dashBottomLeft"><img src="images/spacer.gif" width="7" height="7"></td>
              <td class="dashBottom" width=100%><img src="images/spacer.gif" width="7" height="7"></td>
              <td class="dashBottomRight"><img src="images/spacer.gif" width="7" height="7"></td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
</tr>

<script type="text/javascript">
	$(document).ready(function() {
    var searchBtn = $("#searchBtn");
    var logTemplateIdTxt = $("#logTemplateIdTxt");
    var searchForm = $("#searchForm");
		
    logTemplateIdTxt.keypress(function(e) {
    	if (e.which == 13) {//回车按下
    		var logTemplateIdTxtVal =  $(this).val().trim();
    		logTemplateIdTxt.val(logTemplateIdTxtVal);
		    doSearch();
    		return false;
    	}
    });
	
    searchBtn.click(function() {
    	doSearch();						  
		});

		function doSearch() {
			var logTemplateIdTxtVal =  logTemplateIdTxt.val().trim();
    	logTemplateIdTxt.val(logTemplateIdTxtVal);
    	
	    searchForm.submit();
		}
	});
</script>